package com.example.spring_seatreservation.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class SeminarRoomReservation {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private Long readerId;
    private String title;
    private String content;
    private Integer number;
    private Long roomId;
    private LocalDate resDate;
    private String orderstart;
    private String orderend;
    private Integer state;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private LocalDateTime stopTime;
    private Integer rulebreak;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer tenantId;
    private Long libId;
    private Long floorId;

    @TableField(exist = false)
    private String roomName;
    @TableField(exist = false)
    private String libraryName;
    @TableField(exist = false)
    private String FloorName;

    @TableField(exist = false)
    private String userNumber;
    @TableField(exist = false)
    private String userName;
}
